package javango.contrib.hibernate;

import com.google.inject.Inject;
import com.google.inject.Injector;

import javango.contrib.i18n.I18NProvider;
import javango.db.AbstractManagers;
import javango.db.Manager;

public class HibernateManagersImpl extends AbstractManagers {

	private final HibernateUtil hibernateUtil;
	
	@Inject
	public HibernateManagersImpl(Injector injector, HibernateUtil hibernateUtil) {
		super(injector);
		this.hibernateUtil = hibernateUtil;
	}

	@Override
	protected <T> Manager<T> getForClass(Class<? extends T> arg0) {
		return new HibernateManager<T>(hibernateUtil, arg0);
	}
	
}
